package com.polaris.live.im.sfs.core.bean

import com.polaris.live.im.sfs.core.ClientType
import com.polaris.live.im.sfs.core.OnEventCondition
import kotlinx.coroutines.CompletableDeferred

/**
 * 监听事件延迟
 *
 * @author Created by lucas on 2023/11/8 18:04
 * @since 1.0.0
 */
class EventWrapper(
    /**
     * 客户端类型
     */
    @field:ClientType
    val type: Int,
    /**
     * 监听的事件
     */
    val event: String,
    /**
     * deferred
     */
    val deferred: CompletableDeferred<DataArgument>,
    /**
     * 条件
     */
    val condition: OnEventCondition?
)